const AWS = require('aws-sdk');
const config = require('./config');

// 创建S3客户端
const s3 = new AWS.S3({
  endpoint: config.endpoint,
  accessKeyId: config.accessKeyId,
  secretAccessKey: config.secretAccessKey,
  signatureVersion: config.signatureVersion
});

module.exports = s3;